<!-- 网页后退组件 -->
<template>
	<view class="cd-page-back"><u-icon name="home" label="首页" color="#282c35" size="30" @click="switchTab"></u-icon></view>
</template>

<script>
export default {
	name: 'pageSwitch',
	data() {
		return {};
	},
	methods: {
		switchTab() {
			uni.switchTab({
				url: '/pages/index/index'
			});
		}
	}
};
</script>

<style>
.cd-page-back {
	position: fixed;
	right: 40rpx;
	bottom: 124rpx;
	z-index: 9;
}
</style>
